package com.manage.platform.controller;

import com.manage.platform.dto.PerformancePartDto;
import com.manage.platform.dto.query.PerformancePageQuery;
import com.manage.platform.service.impl.PerformanceServiceImpl;
import com.manage.platform.utils.R;
import com.manage.platform.utils.RPage;
import com.manage.platform.vo.CommonVo;
import com.manage.platform.vo.PerformanceVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * YWD
 * 2025/11/19
 */
@AllArgsConstructor
@RestController
@RequestMapping("/performance")
@Tag(name = "建设任务-绩效目标")
public class PerformanceController {

  private final PerformanceServiceImpl performanceServiceImpl;


//    @GetMapping("/getPerformanceLevelList")
//    @Operation(summary = "1.查询二级指标列表")
//    public R<List<CommonVo>> getPerformanceLevelList(){
//        return R.ok(performanceServiceImpl.getPerformanceLevelList());
//    }
//
//    @PostMapping("/getPerformancePage")
//    @Operation(summary = "查询指标列表(分页)")
//    public R<RPage<List<PerformanceVo>>> getPerformancePage(@RequestBody PerformancePageQuery query){
//        return R.ok(performanceServiceImpl.getPerformancePage(query));
//    }
//
//    @GetMapping("/getPerformanceDetails")
//    @Operation(summary = "查询指标详情")
//    public R<PerformanceVo> getPerformanceDetails(@Schema(description = "ID") @PathVariable("id") Long id){
//        return R.ok(performanceServiceImpl.getPerformanceDetails(id));
//    }

//    @PostMapping("/savePerformance")
//    @Operation(summary = "添加指标")
//    public R<Boolean> savePerformance(@RequestBody PerformanceDto dto){
//        return R.ok(performanceServiceImpl.savePerformance(dto));
//    }
//

//    @PutMapping("/updatePerformance")
//    @Operation(summary = "修改指标")
//    public R<Boolean> updatePerformance(@RequestBody PerformancePartDto dto){
//        return R.ok(performanceServiceImpl.updatePerformance(dto));
//    }

//
//    @DeleteMapping("/deletePerformance/{id}")
//    @Operation(summary = "删除指标")
//    public R<Boolean> deletePerformance(@Schema(description = "ID") @PathVariable("id") Long id){
//        return R.ok(performanceServiceImpl.deletePerformance(id));
//    }
//
//    @DeleteMapping("/deleteBatchPerformance")
//    @Operation(summary = "批量删除指标")
//    public R<Boolean> deleteBatchPerformance(@RequestBody List<Long> ids){
//        return R.ok(performanceServiceImpl.deleteBatchPerformance(ids));
//    }


}
